before_save_<model>
Usage
Fires before any database record of type <model> is saved. This includes both insert and update operations.
Since this hook fires before the record is saved, the record ID will not be available, but changes made to any other record properties will be saved.
Arguments
Omeka_Record_AbstractRecord
recordThe record being edited
array or false
postThe post data, or false if none
boolean
insertWhether the record is being inserted